package com.ling.rocketmq.model;

import com.ling.rocketmq.annotation.Rocketmq;

import java.lang.reflect.Method;

public class ConsumerMethodModel {
    public final Class<?> targetClass;

    public final Method method;

    public final Rocketmq annotations;

    public ConsumerMethodModel(Class<?> targetClass, Method method, Rocketmq annotations) {
        this.targetClass = targetClass;
        this.method = method;
        this.annotations = annotations;
    }

    public Method getMethod() {
        return method;
    }

    public Class<?> getTargetClass() {
        return targetClass;
    }

    public Rocketmq getAnnotations() {
        return annotations;
    }
}
